package com.five.system.service.impl;

import com.five.basic.service.impl.BaseServiceImpl;
import com.five.pojo.Permission;
import com.five.system.mapper.PermissionMapper;
import com.five.system.service.PermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

@Service
public class PermissionServiceImpl extends BaseServiceImpl<Permission> implements PermissionService {
    @Autowired
    private PermissionMapper permissionMapper;

    @Override
    public List<String> queryByUserId(Long userId) {
        return permissionMapper.queryByUserId(userId);
    }
}
